--[[/**
-- *
 * 移除时死亡
-- *
-- */]]

---@class BuffEffect525101 : BaseBuffEffect
BuffEffect525101 = ClientFight.CreateClass("BuffEffect525101", ClientFight.BaseBuffEffect)
local t = BuffEffect525101

---@param fight Fight
---@param buff FighterBuff
function t:remove(fight, buff, force,...)
    --没别的作用, 就是移除时让主人死掉
    local target = buff.target;
    DamageManager.setFighterHp(fight,target,target,nil, SkillDamageTypeEnum.LIFE,-target.hp,0,false,true, false,false);
    return IBuffEffect.SUCCESS_ATTRI_HAS_CHANGE;
end

t.New()